package com.training.utils;

import android.os.Build;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;

public class DateUtil {
    public static String formatDate(String timestamp) {
        ZonedDateTime zonedDateTime = ZonedDateTime.parse(timestamp);
        return zonedDateTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd"));
    }
}
